#include<stdio.h>
#include<math.h>
int a, b, c;
int main()
{
	scanf("%d%d%d", &a, &b, &c);
	printf("%d ", (a+b+c)/3);
	double ans=(a+b+c)*1.0/3;
	//if((a+b+c)%3 < 5) printf("%d", (a+b+c)/3);
	//else printf("%d", 1+(a+b+c)/3);
	printf("%d",(int)(0.5+ans));
	return 0;
}
